package com.changhong.framework.sdfs.namenode.server.directory;

import java.util.Date;
import java.util.UUID;

/**
 * @author Summer
 */
public class OperationLogFactory {

    public static OperationLog creatOperation(String path,Integer operationType){
        OperationLog operationLog=new OperationLog();
        operationLog.setId(UUID.randomUUID().toString().replace("-",""));
        operationLog.setCreateTime(new Date());
        operationLog.setModifiedTime(new Date());
        operationLog.setPath(path);
        operationLog.setOperationType(operationType);
        return operationLog;
    }

}
